-- GENERATED SPELL FOR [Defias Enchanter] --


function spell0_910(pUnit, Event) --@Enchanted Quickness,n/a--
pUnit:FullCastSpellOnTarget(3443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_910', 18000, 1)
end

function spell1_910(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_910', 3000, 1)
end

function spell2_910(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_910', 0, 1)
end

function Sorts_910(pUnit, Event)
local choix_sorts_910 = math.random(0, 2)
if choix_sorts_910 == 0 then
pUnit:RegisterEvent('spell0_910', 1, 1)
end
if choix_sorts_910 == 1 then
pUnit:RegisterEvent('spell1_910', 1, 1)
end
if choix_sorts_910 == 2 then
pUnit:RegisterEvent('spell2_910', 1, 1)
end
end

function mob910_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_910', math.random(1500, 3000), 1)
end

function mob910_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob910_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob910_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(910, 1, 'mob910_Action')
RegisterUnitEvent(910, 2, 'mob910_Leave')
RegisterUnitEvent(910, 3, 'mob910_Kill')
RegisterUnitEvent(910, 4, 'mob910_Die')
